#include "printtemplatepreview.h"
#include "ui_printtemplatepreview.h"

PrintTemplatePreview::PrintTemplatePreview(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::PrintTemplatePreview)
{
    ui->setupUi(this);
    bdf = BllDataFlow::getInstance();
    connect(bdf, &BllDataFlow::retranslateUiSignal, this, &PrintTemplatePreview::retranslateUiSlot);
}

PrintTemplatePreview::~PrintTemplatePreview()
{
    delete ui;
}

void PrintTemplatePreview::paintEvent(QPaintEvent *event)
{
    QPainter painter(this);
    painter.fillRect(this->rect(), QColor(255, 255, 255, 0));
}

void PrintTemplatePreview::on_btnClose_clicked()
{
    this->hide();
}

void PrintTemplatePreview::retranslateUiSlot()
{
    ui->retranslateUi(this);
}
